<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
       <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>${title }</title>
    <link rel="stylesheet" href="${basePath}/static/bootstrap/css/bootstrap.css"/>
    <link href="${basePath}/static/css/basic.css" rel="stylesheet" type="text/css">
    <link href="${basePath}/static/css/login.css" rel="stylesheet" type="text/css">
    <link href="${basePath}/static/css/list.css" rel="stylesheet" type="text/css">
    <script  type="text/javascript" src="${basePath}/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="${basePath}/static/easydialog/easydialog.min.js"></script>
    <script  type="text/javascript" src="${basePath}/static/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="${basePath}/static/page/jqPaginator/jqPaginator.js"></script>
    <script  type="text/javascript" src="${basePath}/static/layer/layer.js"></script>
    <link href="${basePath}/static/layer/layer_defined.css" rel="stylesheet" type="text/css">
    <style>
     .td_input_box{
        width: 95%;
	    height: 28px;
	    text-align: left;
	    text-indent: 5px;
	    line-height: 20px;
	    border-bottom: #fec99c solid 1px;
	    border-top: #FFF solid 1px;
	    border-left: #FFF solid 1px;
	    border-right: #FFF solid 1px;
     }
     .btn{
      background: #039b8e;
      color:#fff;
     }
     .td_relative{
      position:relative;
      }
     .checkList{
      display:none;
      position:absolute;
      top:35px;
      left:10px;
      border:1px solid #ccc;
      width:95%;
      height:150px;
      overflow-y:scroll;
      z-index:19891018;
      background:#fff;
     }
     .checkList li{
      width:100%;
      height:auto;
      line-height:30px;
      padding:0 5px;
      text-align:left;
     }
     .checkList li:hover{
      background-color:#EAF4F6;
     }
     .int {
	    background: #07a396;
	    color: #FFF;
	    border-radius: 4px;
	    cursor: pointer;
	    padding: 4px;
	}
	/* 提示信息框样式 */
	/* .layui-layer-title{
	 background-color:#07a396;
	 color:#fff;
	}
	.layui-layer-btn .layui-layer-btn0{
	 border-color: #07a396;
     background-color: #07a396;
	}
	.layui-layer-btn a{
	 border-color: #07a396;
     background-color: #07a396;
     color:#fff;
	}
	.layui-layer-page .layui-layer-content{
	 overflow:visible;
	} */
    </style>
</head>
<body>
<!--头部-->
	<%@include file="/WEB-INF/templates/common/header.jsp"%>
	<!------导航条-->
	<%@include file="/WEB-INF/templates/common/navigation.jsp"%>

<!--内容部分-->
<div class="list_main lay_out" class="clearfix">
    <div class="list_DH">
        <%@include file="/WEB-INF/templates/common/indexPageAudit.jsp"%>
    </div>
    <div class="list_NR">
        <div class="loc">
            <h3 style="margin:0">病案质控查询</h3>
        </div>
        <div class="list_con_table" style="overflow:visible">
        
        	 <div class="search_table">
                <ul class="clearfix" style="margin-bottom:0;border-bottom:#e3e5e4 1px solid">
				    <li class="Label_1">病案号：&nbsp;</li>
				    <li class="Label_2">${firstLevelMedical.onlyId}</li>
				    <li class="Label_1">识别码：&nbsp;</li>
				    <li class="Label_2">${firstLevelMedical.mrId}</li>
				    <li class="Label_1">姓名：&nbsp;</li>
				    <li class="Label_2">${firstLevelMedical.name}</li>
				    <li class="Label_1">身份证号：&nbsp;</li>
				    <li class="Label_2">${firstLevelMedical.idCard}</li>
				    <li class="Label_1">出院日期：&nbsp;</li>
				    <li class="Label_2">${firstLevelMedical.outHospitalDate}</li>
				    <li class="Label_1">出院科室：&nbsp;</li>
				    <li class="Label_2">${firstLevelMedical.officeName}</li>
				    <!--  <li class="Label_5">
				     <a onclick="add()">新增</a><a onclick="scan()">首页</a>
				    </li>-->
				  </ul>
				  <table class="Search_tableList">
				        <thead>
				           <tr>
                                <td class="tdLabel_4" width="50%">质控内容</td>
                                <td class="tdLabel_4" width="30%">质控时间</td>
                                <!--  <td class="tdLabel_4" width="20%">操作</td>-->
                            </tr>
				        </thead>
                        <tbody id="medical_modify">
                            
                        </tbody>
                    </table>
   			</div>   
        </div> 	
    </div>
</div>

<!-- 修改弹出框-->
<div id="div_TC" style="overflow:visible;display:none">
   <div class="TC_title">
        <h3>修改审核</h3>
        <ul>
            <li style="float:right"><a id="closeBtn2" onclick="cancel()">取消</a></li>
        </ul>
    </div>
    <div class="search_table" style="margin-bottom:0;">
        <table class="Search_tableList">
            <tbody id="tbody">
                   <input type="hidden" id="Id">  
                  <tr>
                       <td class="Label_1">审核内容</td>
                       <td class="tdLabel_5 td_relative">
                           <input type="text" name='remark' id="remark" class="td_input_box check_input" oninput="check(event)">
                           <ul class="checkList">
                               <!-- <li onclick="check_click(event)">11</li> -->
                           </ul>
                           <input type="hidden" name="auditingStandardId" id="auditingStandardId">     	
                       </td>
                       <td class="Label_1">审核时间</td>
                       <td class="tdLabel_5">
                           <input type="text" name="createTime" id="createTime" class="td_input_box" onFocus="WdatePicker()">         
                       </td>         
                  </tr>         
             </tbody>
       </table>                
    </div>
    <div class="TC_foot" style="margin-top:0;">
        <ul>
            <li><a id="closeBtn3" onclick="save()">保存</a></li>
        </ul>
    </div>
</div>
<input type="hidden" id="firstGuid" value="${firstLevelMedical.firstGuid}">
<!------页脚部分--------->
<%@include file="/WEB-INF/templates/common/footer.jsp"%>

<!--JS部分-->
<script type="text/javascript">
    var firstGuid=$("#firstGuid").val();
    //先初始化页面
    init();
    function init(){
         $.ajax({
        	type:"get",
        	data:{firstGuid:firstGuid},
        	url:"${basePath}/audit/getMedicalAuditByFirstGuid",
        	success:function(data){
        		console.log(data)
        		var medicalModifyList = data.data;
        		if(medicalModifyList.length>0){
        			var html="";
        			for(var i=0;i<medicalModifyList.length;i++){
        				var name = "";
        				if (medicalModifyList[i].name !=null && medicalModifyList[i].name != '') {
        					name = medicalModifyList[i].name;
        				}
        				var createTime = "";
        				if (createTime != null && createTime != '') {
        					createTime = medicalModifyList[i].createTime;
        				}
        				
        				html+="<tr>";
        				html+="<td class='tdLabel_5' width='50%''>"+medicalModifyList[i].name+"</td>";
        				html+="<td class='tdLabel_5' width='30%'>"+medicalModifyList[i].createTime+"</td>";
        				html+="</tr>";
        			}
        			$("#medical_modify").html("").html(html);
        		}else{
        			layer.alert("暂无数据！",{icon:7})
        		}
        	}
        })
    }
    
</script>

</body>
</html>